export default {
    async getData({
        commit
    }) {
        console.log('getData');
        commit('updateState', {
            topNav: {}
        });
    },
    async initNav({
        commit,
        state
    }) {
        console.log('state', state);
        const {
            data
        } = await this.$axios.get('http://api.524411.com/get/navdata');
        commit('updateState', {
            topNav: data.data.nav_data
        });
    }
}
